#-*-coding: utf-8-*-

# Version: 0.1
# Author: Don Li <iedon@126.com>
# License: Copyright(c) 2017 Don.Li
# Summary:

from config_parser import config
from osutil        import root_path

URL_ROOT = 'http://{0}:{1}'.format(
        config.get('SPIKER', 'hostname'),
        config.get('SPIKER', 'port').split(':')[1]
    )

ROOT_PATH = root_path()
STATIC_PATH   = ROOT_PATH + config.get('SPIKER', 'static_path')
TEMPLATE_PATH = ROOT_PATH + config.get('SPIKER', 'template_path')
